package com.atao.baokede.mapper;

import com.atao.baokede.pojo.Dialogue;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DialogueMapper {
    /**
     * 添加对话
     * @param dialogue
     */
    @Insert("insert into dialogue(user_id, merchant_id, content, sender, create_time) values(#{userId}, #{merchantId}, #{content}, #{sender}, now())")
    void addDialogue(Dialogue dialogue);
}
